# Maintainer:

pkgname=perl-file-path-tiny
pkgver=1.0
pkgrel=1
pkgdesc='recursive versions of mkdir() and rmdir() without as much overhead as File::Path'
arch=('any')
url="https://metacpan.org/release/File-Path-Tiny"
license=('PerlArtistic' 'GPL')
depends=('perl')
checkdepends=('perl-test-exception')
options=('!emptydirs')
source=("https://search.cpan.org/CPAN/authors/id/D/DM/DMUEY/File-Path-Tiny-$pkgver.tar.gz")
sha1sums=('13f89269b3bcb49f98dec852950c24eaf5ed792f')

build() {
  cd File-Path-Tiny-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd File-Path-Tiny-$pkgver
  make test
}

package() {
  cd File-Path-Tiny-$pkgver
  make install DESTDIR="$pkgdir"
}
